package cn.wildfire.chat.app.extendsion.https;

import cn.wildfire.chat.app.Config;

/**
 * Create by HEKE, 2019/8/16 16:00
 * TODO 服务端API接口对象
 */
public class ServerUrlClient {

    private static final String BASE_URL_NOSYS = "http://" + "159.75.19.170:8888" + "/";
    private static final String BASE_URL = "http://" + "159.75.19.170:8888" + "/sys/";

    /**
     * 注册接口
     */
    public static final String REGISTER = BASE_URL + "register";

    /**
     * 区号获取
     */
    public static final String REGION = BASE_URL + "findRegionAll";

    /**
     * 密码登入
     */
    public static final String PASSWORD_LOGIN = BASE_URL + "loginByPassword";

    /**
     * 验证码登入
     */
    public static final String CODE_LOGIN = BASE_URL + "login";

    /**
     * 发送验证码
     */
    public static final String SEND_CODE = BASE_URL + "send_code";

    /**
     * 查询用户是否存在
     */
    public static final String FIND_USER = BASE_URL + "findUser";

    /**
     * 设置群组普通成员VIP权限
     */
    public static final String SET_VIP = BASE_URL_NOSYS + "group/setVipMember";

    /**
     * 获取群组人员信息
     */
    public static final String GET_GROUPMEMBER_INFO = BASE_URL_NOSYS + "group/selectGroupMemberByGid";

    /**
     * 检测安卓应用程序升级
     */
    public static final String ANDROID_VERSION_UPDATE = BASE_URL_NOSYS + "versionUpdate/version";

    /**
     * 请求修改信推号
     */
    public static final String REQUEST_MODIFY_ACCOUNT = BASE_URL_NOSYS + "user/editCaibaNumber";

    /**
     * 举报好友
     */
    public static final String REQUEST_REPORT_FRIEND = BASE_URL_NOSYS + "complaint/add";

    /**
     * 获取随机图形验证码
     */

    public static final String GET_RANDOM_VIFCODE = BASE_URL_NOSYS + "sys/random_code";

    /**
     * 隐私政策
     */

    public static final String PrivacyPolicy = "http://" + Config.APP_SERVER_HOST + ":81/app/PrivacyPolicy.html";

    /**
     * 用户协议
     */
    public static final String USER_AGREEMENT = "http://" + Config.APP_SERVER_HOST + ":81/app/userAgreement.html";

    /**
     * 请求验证码类型
     */
    public static final String GET_CODE_TYPE = BASE_URL_NOSYS + "sys/getCodeType";

    /**
     * 请求密保问题
     */
    public static final String GET_SECURITY_QUESTION = BASE_URL_NOSYS + "encrypted/list";

    /**
     * 通过手机号码获取用户信息
     */
    public static final String GET_USER_INFO_BY_PHONE_NUMBER = BASE_URL_NOSYS + "sys/validMobile";

    /**
     * 请求密保验证
     */
    public static final String REQEUST_SECURITY_PASSWORD_VERIFICATION = BASE_URL_NOSYS + "sys/backPwdByEncrypted";

    /**
     * 请求设备码验证
     */
    public static final String REQUEST_CID_VERIFICATION = BASE_URL_NOSYS + "sys/backPwdByCheckCode";

    /**
     * 人工申诉请求
     */
    public static final String REQUEST_MANUAL_APPEAL = BASE_URL_NOSYS + "sys/backPwdByComplaint";

    /**
     * 人工申诉请求
     */
    public static final String REQUEST_COMPLAINT = BASE_URL_NOSYS + "advice/complaint";

    /**
     * 短信验证
     */
    public static final String REQUEST_SMS = BASE_URL_NOSYS + "sys/backPwdBySms";


    /**
     * 重置密码
     */
    public static final String RESET_PASSWORD = BASE_URL_NOSYS + "sys/resetPwd";

    /**
     * 个人中心重置密码
     */
    public static final String PERSONALCENTER_RESET_PASSWORD = BASE_URL_NOSYS + "user/editPassword";

    /**
     * 共同群聊
     */
    public static final String CHATTING_TOGETHER = BASE_URL_NOSYS + "groupMember/getTogetherGroup";

    /**
     * 如果之前没有设置密保,设置密保
     */
    public static final String ADD_SET_PASSWORD_PROTECTED = BASE_URL_NOSYS + "sys/setEncrypted";

    /**
     * 用户在线离线状态
     */
    public static final String ONLINE_STATUS = BASE_URL_NOSYS + "user/getUserOnlineStatus";

    /**
     * 第三方微信登录
     */
    public static final String WX_LOGIN = BASE_URL_NOSYS + "sys/loginByWX";

    /**
     * 检测微信账号在后台是否存在
     */
    public static final String WX_EXISTED_CHECK = BASE_URL_NOSYS + "wxthirdUser/queryWXUser";

    /**
     * 查询账号与安全中心数据内容
     */
    public static final String ACCOUNT_SECURITY_CENTER = BASE_URL_NOSYS + "sys/querySecuritySettings";

    /**
     * 绑定手机号
     */
    public static final String BIND_PHONE = BASE_URL_NOSYS + "sys/bindMobile";

    /**
     * 绑定微信号
     */
    public static final String BIND_TENCENT_WEIXIN = BASE_URL_NOSYS + "sys/bindWX";

}
